#!/bin/bash
# Purpose: Part of support suite. Collects logs from users
# Author: George Bredberg
# Date: 20130712
# Has to be runned by extended user rights (root or sudo).
# Insert in crontab to run nightly.

MV=`which mv`
# Change to server settings...
USERLOGS="/home/*/.support/*"
# See to that down dir exists...
# Could just do a check here...
# This does not work with several servers.. scp? or mv to admins dir or share
#SYSTEMLOGDIR="/var/log/USERLOGS"
SYSTEMLOGDIR="/home/george/USERLOGS/"

$MV $USERLOGS $SYSTEMLOGDIR

